<script>
 if(!this.begin(ed.isNew() ? "savenewmodule" : "savemodule",
                ed.getSaveData(this.state.segmentId, values))) {
                  return false;
 }
</script>
